package com.base.self.dto.commodityCallPlan;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommodityCallPlanWebAddDTO implements Serializable {
    @ApiModelProperty(value = "礼包名称")
    @NotBlank(message = "礼包名称不能为空")
    private String planName;

    @ApiModelProperty(value = "礼包单价")
    @NotNull(message = "礼包单价不能为空")
    @DecimalMin(message = "礼包单价为正数", value = "0.01")
    private BigDecimal planPrice;

    @ApiModelProperty(value = "礼包图片")
    @NotBlank(message = "礼包图片不能为空")
    private String planPic;
}
